module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'sass',
      patterns: []
    }
  },
  css: {
    loaderOptions: {
      less: {
        javascriptEnabled: true,
      }
    }
  },
  devServer: {
    open: true, // auto open brower 项目启动后自动打开浏览器...
    disableHostCheck: false,
    host: "0.0.0.0",
    port: 8099, // 修改端口号
    https: false,
    hotOnly: false,
    proxy: {
      '/api': {
        target: 'http://localhost:12001/api', // 对应自己的 跨域地址 即请求的后端地址
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }

}
